﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace JJY.Log4Net
{
    public class LogInitialize
    {
        public static bool Init(string log4NetConfig)
        {
            bool result = false;

            try
            {
                FileInfo fileInfo = new FileInfo(log4NetConfig);
                log4net.Config.XmlConfigurator.ConfigureAndWatch(fileInfo);
                result = true;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return result;
        }
    }
}
